// UsbPhoneCtrlPpg.cpp : Implementation of the CUsbPhoneCtrlPropPage property page class.

#include "stdafx.h"
#include "UsbPhoneCtrl.h"
#include "UsbPhoneCtrlPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CUsbPhoneCtrlPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CUsbPhoneCtrlPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CUsbPhoneCtrlPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CUsbPhoneCtrlPropPage, "USBPHONECTRL.UsbPhoneCtrlPropPage.1",
	0x67a1c99d, 0x6a84, 0x4fb1, 0xa1, 0xfe, 0xea, 0x85, 0xad, 0x80, 0xb2, 0x69)


/////////////////////////////////////////////////////////////////////////////
// CUsbPhoneCtrlPropPage::CUsbPhoneCtrlPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CUsbPhoneCtrlPropPage

BOOL CUsbPhoneCtrlPropPage::CUsbPhoneCtrlPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_USBPHONECTRL_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CUsbPhoneCtrlPropPage::CUsbPhoneCtrlPropPage - Constructor

CUsbPhoneCtrlPropPage::CUsbPhoneCtrlPropPage() :
	COlePropertyPage(IDD, IDS_USBPHONECTRL_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CUsbPhoneCtrlPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT

	SetHelpInfo(_T("Names to appear in the control"), _T("USBPHONECTRL.HLP"), 0);
}


/////////////////////////////////////////////////////////////////////////////
// CUsbPhoneCtrlPropPage::DoDataExchange - Moves data between page and properties

void CUsbPhoneCtrlPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CUsbPhoneCtrlPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CUsbPhoneCtrlPropPage message handlers
